/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.personal-center-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.profile-header {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.avatar-container {
    position: relative;
    margin-right: 30px;
    text-align: center;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.edit-avatar-btn {
    position: absolute;
    right: 24px;
    bottom: -22px;
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.edit-avatar-btn:hover {
    background-color: #40a9ff;
}

.user-info h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.user-id, .user-level {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

/* 内容区域 */
.profile-content {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-nav {
    width: 200px;
    background-color: #fafafa;
    border-right: 1px solid #eee;
}

.profile-nav ul {
    list-style: none;
}

.profile-nav li {
    border-bottom: 1px solid #eee;
}

.profile-nav li a {
    display: block;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.profile-nav li a:hover {
    color: #1890ff;
    background-color: #f0f0f0;
}

.profile-nav li.active a {
    color: #1890ff;
    background-color: #e6f7ff;
    border-right: 3px solid #1890ff;
}

.profile-sections {
    flex: 1;
    padding: 30px;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

/* 表单样式 */
.profile-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.save-btn {
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.save-btn:hover {
    background-color: #40a9ff;
}

/* 安全设置样式 */
.security-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.security-item h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.security-item p {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.modify-btn {
    background-color: transparent;
    color: #1890ff;
    border: 1px solid #1890ff;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.modify-btn:hover {
    background-color: #e6f7ff;
}

